added length validation to Rspec test and user.db