modularize login page