Set a cookie containing user information when loging in