Added user login system

Basic system for logging in and out. No error handling is done yet.