Simple rails app with validation