Changed updateUser it should now return Userinfo ( for the updated user )
added some instanceof Userinfo checks (we  may need to add more)