resolved a crash in login form