sometimes the login view was crashing the page