Added password confirmation and flash notice