Some extremely basic user authentication. Needs some serious code refactoring.