modified user authentication to include salt