attempt at new way of logging in text php