added validation to login when adding statuses