modify login function

upload login information to the server