added method askForPassword
logout on server
removed unused parameter
better login check, refs #17