hw2updated

register bug fixed