Fix logins ES and small caps

Small fixes to make it run properly.
is apache_path still needed? If not, it should be removed.