changed the server date check in profile to return the error string as a json object