Password check was failing when password was null.