Fixed login controller reference, and added logout control