optimized flow, added server validation and added launch at login