Password authentication implementation