Declared validateUser() and worked on sendRequest()