Fixed password length bug

Change from enum to fixed value
Added unit test

Fixed invalid argument