Removed duplicate code from IA Login.