Refactored userlogin and added test for the sample customer