remove useless code
change array declaration
remove function dbconn
add login page and function