Sign in

Implements the sign in functionality discussing in #1