We posted a wrong link '/reg' instead of '/register' so we I added '/reg' route and redirected to '/register'