login functionality
finished first assignment