Rework initial permissions support

Signed-off-by: Jonathan Dieter <jdieter@lesbg.com>
Fix logging bug when user logged in with wrong password

Signed-off-by: Jonathan Dieter <jdieter@lesbg.com>