Add a test and validation for missing password