confirmation email set and bug fixing