Fixed login view errors