Changes to settings and Index.js

Added flash messages for confirmation / error reporting when a user
successfully/unsuccessfully updates information to be displayed on the
user page

Fixed settingUpdate function. Now everything works correctly