User login via session and related tests