fix login for customer and admin