Added endpoint for customer login

The logic to address feature request suggested in #6126.