added javascript validations for user settings page and new friend page