fixed to pass validations for length
refactored
fixed migrations