updated login credentials and changed mysql_insert_id() to last_insert_id()