fixed login bug where you were constantly asked to log in even when you still are