login working in both pages