Added error messages to an unsuccesfull edit
Added flash to the edit page in case of a succesful or unsuccsful login