login required handler implementation