Changed login logic and added channel name to the process.