Add jQuery Masonry to enable Pinterest style photo display, add better sign in logic