Moved key loading to main pas file

Show Login form only if user not logged in
Fixed erroneous languagecodes path