password validate and buttons