Fix for signup template error when redirecting back after an invalid session