Added method to check if password is valid. Min requeriments