Automatically log in users who access third party login after trying to register for a course