Wired up login functionality