Add user authentication with a simple database backend