doCheckLogin() in controller