public void setPassword(String password)
    {
        password = password.trim();

        if ( password.isEmpty() ) {
            throw new RuntimeException( "'password' should not be empty" );
        }

        if ( password.length() < 6 ) {
            throw new RuntimeException( "'password' cannot be of less than 6 characters" );
        }

        this.password = password;
    }