adds second layer of form input verification for both login and signup