a very basic login impl, a lot of functions to add, not secure!