Modified CustomerProfileImpl class to overload the login method.