Fixed bug preventing login