added api with original login/register -- register currently doesn't add to db anymore