Functioning login system

Implemented a functional login system to filter account types. May not
have been implemented on all pages.