Improved UI, added some error messages, added logout function