- adding missing preauthorized login routine
- added app id generation routine helper