repeated error_msgs method in users controller