fixed a login problem and location