partial login functionality