Adds temp cookie creation and redirect to user profile for log in