Login Function added.

Function handles requests using a username and password. Must be linked
to the exisiting form.