. debug functions on more scenarios.
. add stepdown function here
. add bootstrap validation