Add user authorization functionality