change password validation error
moved password validation to one place
update tests
Merge pull request #5 from fizyk/validation

Validation improvement