Made url rewriting for the pages of register, login, logout..etc