Added basic login functionality, minor improvements - #18