Modified some templates and written test cases for register view