Attempting to fix sign in and register issues by rendering templates rather than redirecting