Added the JavaScript validation to the admin (user profile) panel