Fix: Session audit failed with SQL errors for unsuccessful logins
Don't create link for non users
Update form syntax