Fixed input errors, implemented flash for password confirmation error message