Implemented login mechanism in Staff controller