fixed failure to sign in

more dynamic, pulls form info before signing in