redirect to login page when the user registration operation fails

Change-Id: Ib4f3e231f06518f1e73cbd21a69346634067c724