hide js messages when profile modal is opened