developed logout
made it so that when a user registers successfully, they are also logged in.