fixed some bugs in login page