Added unit test for userloginbyusercredential