Login now works properly