Login now working as expected