Added typing to login