Some fixes in adding users and login panel