implement the update, insert functions
create the login system