added sending username and password to the server