added login functionality
updated version