fixes bug where passwords where not allowed to have special characters