fixed login upon first visit