Added getuserByName method