Check password for 8 characters, 1 uppercase, 1 lowercase and 1 number

Please re-submit based on a version rebased with the head of master.