Implemented cookies to log user in after creating account