Adds user authentication