Added by myself, validattion for status.rb page