Stat server partially in place

Multiple login changes and corrections.
Better loggin out when user account is incorrect