Added code for logging in.

Commented out the warning.html line because we don't have one at the moment.