changed some stuff in login/register since it was not using the user table correctly