Added response time header to responses
Fixed a bug in the checkUserExists function