Added error/success messages to profile controller