sending and receiving username and password