makes it so registration also logs a user in