fixed user authentication. couldn't sleep because of it. worth it.