Login control moved to constructor