Fix #5 issue: Now before query the database verify the token format