Using other method to check password rules and some small fixes.