refactor email authenticatino to allow for auto-confirmation on click