Move the lastlog perm change inside the { }