Fix initial login check. Set ttl for sessions to a week.