Added new validation for password. Fixed the tests