Add login feature for viewer and admin roles