added registering users feature; authorization of password (on login) - WIP