Added the function to change credentials