Added wrapper class and login method