<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def get_msg_login(self, username):
 """message for welcome. """

        account = self.get_account(username)
        if account:
            account.update_last_login()
            account.save()
        return 'welcome.'