moved 'error_msgs' to application controller