fixed some more login bugs, working on profile edit