Add login functionality

Rough draft