Train crossing accidents can be avoided