Added front-end password security checking