Double login working properly