added login validation and config file