when a user signs up he is automatically logged in