add regex for lowercase, fix before_save block