Login code now correctly accepts or rejects un/pw combinations, creates a session and sets a cookie.
Deleted old login form code from view.