fixed fault delete sql query
updated login attempt model to use actual table