agency type

added requesting type
username validation
Merge remote-tracking branch 'origin/master'