Working email auth and registration