Added login functionality closes #14