add function to edit login credentials