Railway preparation to deal with miscreants