Fixing index

asd
Fixed login, register and functions