Completed hide-password checkbox logic