tweaks to login now passes all tests and works