It seems like the problem is not related to our template. Perhaps you have installed some 3rd party extension that causes this problem? Try disabling 3rd party modules and components one by one and check if login works fine. If that will not help, perhaps updating Joomla or reuploading core files might help.