Login Based on Functions

Doreen just needs to change the variable names in the switch statement
to whatever value is in the database. After that it should work.