added flash notices for error cases in user controller