Fix for redirecting to login page after the succesfully registration in store