typeof check for login username

Signed-off-by: Mario Kozjak <kozjakm1@gmail.com>