fixed test for blank password by using empty string instead of nil