Improved Login, corrected Dev Logout