fix login user profile bug (no refactor yet)