Written functional test
Implemented checking for null username or password and checking if
request's JSON object is valid