Add user authentication functionality