adding setUserName method to Registered user