add login-functionality + fix config localStorage