added flashes, resize avatar image on upload and started working on the settings page