You need to hide the Login links and form while the user is authenticated. This way the user will not be able to login for the second time without first logging out.
You should not prevent two people logging in from the same machine because in real world you might not be able to detect it is the same machine (for example, if two people are behind the same router).