Login and permission is done