added autocomplete for register input box
implemented add and remove register header to the session variable