fix login with new uuid system, other minor fixes