got authenticate/register working