Implements better password validation