Revamp database expires_in as expires, and add vaidation to code and refresh_token.