adds user authentication