Implemented Customer Authentication function. Added tests