update demo
update method to validate user
update codes