Finish authentication utility functions, except reset master password
Fix basic auth config validation issue