Code for login

This is the code sent to me by CAS Technology Services. The changes to
make it work correctly have been made. However, when a user logs in
successfully they are currently sent to a blank page.