<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def login(self):
 """ Logs the user in, returns the result Returns bool - Whether or not the user logged in successfully """

        # Request index to obtain initial cookies and look more human
        pg = self.getPage("http://www.neopets.com")
        
        form = pg.form(action="/login.phtml")
        form.update({'username': self.username, 'password': self.password})
        pg = form.submit()
		
        logging.getLogger("neolib.user").info("Login check", {'pg': pg})
        
        return self.username in pg.content