created authentication and flash services