Updated page refresh in login controller