Added login functionality with server verification