Change from session to cookie and added remember me to authentication