Store user data in cookies and login at server