* verifying credentials and returning auth_code if credentials exist, added and modified test scripts