authentication working well with logout-->login