signup not redirecting to the main page