T004 authentificate user with db storage

It's awful mix of properties and methods. Please declare all properties at the start of file, and methods at the rest of the file