fix log_in protected method.