added automatic log in once user is created