refactoring handlers. pkg specific handlers
username regexp checking