avoid NoneType exception in login form