add login function for customer