Redirect to frontend if logout, while working in form