Fixed logging in