Streamline dynamic creation of login form