adding flash messages in controller
validates email format
displaying flash messages and errors
refactoring delete#index and user.to_param - user.id
refactoring to expect sensible data