flattening login form