added existence of a "login" for Agent.java