Add login controller. Validation on 'add document panel' and login panel.