Login now working correctly