Can now login but some error handling is required.