Replace split with chomp and adjust order of login buttons