bug fixed user is logged in when they register