Changed login basis from username to email
Fixed login redirect