Added auto login after registering