register with auto login