fixed logging in