login, register fix; main panel after login