Fixed some bugs (error messages and show.html.erb)