code refactoring: remove extra newlines, schema.rb and rename error to error_message
remove whitespaces