User Authentication and File Upload using Rails 4