adding middleware for domain issue and session
login working with session :)