Upon register, log in automatically and redirect to home page