added delete account in  main.rb and implemented flashes
modified main and profile