user check fixes, login returns id