Added new automated way to validate user credentials and create a workable user session