Spec'd and implemented the log-in code.