creating the client login code