Add simple login function.