func loginAttempt(sess *sessions.Session) {
	if sess.Values[sessLoginAttempt] == nil {
		sess.Values[sessLoginAttempt] = 1
	} else {
		sess.Values[sessLoginAttempt] = sess.Values[sessLoginAttempt].(int) + 1
	}
}
loginAttempt increments the number of login attempts in sessions variable
package controller
import (
	"fmt"
	"log"
	"net/http"
	"app/model"
	"app/shared/passhash"
	"app/shared/session"
	"app/shared/view"
	"github.com/gorilla/sessions"
	"github.com/josephspurrier/csrfbanana"
)
const (
	sessLoginAttempt = "login_attempt"
)