Prevent crash on absent data
Fix validation bugs
Check domain when returning access token