Updated authenticaiton fucntion for customers. Added function to update the customer data