dry up and modularize layouts
add header to sign up page
Merge pull request #3944 from MrZYX/modular_layouts

Modular layouts