added login functionality, still need to do right checking