login logout working smoothly