fixes to login, unifying profile