Implemented auto login after user registration