Add logout and updated register page, fixed a hashchange bug and add datepicker and select2.