Set up form vars and login conditional