passing salt argument to check passwords correctly
implemented authentication