fixed context bug in login controller