Login automatically after registration