finish the framework of the client and server side, implement the login function