After registering, user is directed toward login page instead of root path