Added login functionality (not 100% finished) (no interface yet, only classes)