made registering and login stuff work