Added basic user authentication functions