Move login div to common template