1. Changed DateField date format.
2. Changed query for authenticating client.