get rid of exception when password is empty