Added user password function, tests & more validations