initial implementation of login