Login authorization was added. Some fixes.