fixed log in
fixed logging in everytime bug