fix logout button causing render failure
auto login after registering